unit Edit;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, StdCtrls;

type
  TFrmEdit = class(TForm)
    Label1: TLabel;
    Label2: TLabel;
    Label3: TLabel;
    Edit1: TEdit;
    Edit2: TEdit;
    Edit3: TEdit;
    ButtonSave: TButton;
    ButtonCancel: TButton;
    procedure ButtonCancelClick(Sender: TObject);
    procedure ButtonSaveClick(Sender: TObject);
  private
    { Private declarations }
  public
    { Public declarations }
  end;

var
  FrmEdit: TFrmEdit;

implementation

{$R *.dfm}

uses Reg, Fun;

procedure TFrmEdit.ButtonCancelClick(Sender: TObject);
begin
  Self.Close;
end;

procedure TFrmEdit.ButtonSaveClick(Sender: TObject);
begin
  Reg.FrmReg.EditListener(Edit1.Text, Edit2.Text, Edit3.Text);
  Self.Close;
end;

end.
